package com.wenjiang;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.wenjiang.dao.userdao;

@SpringBootTest(classes =SpringbootVueApplication.class)
@RunWith(SpringRunner.class)
public class testDao {
    @Autowired
    private  userdao userdao;

    @Test
    public void testfindall()
    {
        userdao.findall().forEach(
                user -> System.out.println("user=" +user)
        );
    }
}
